package club.zhcs.sbc.conf;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * 
 * @author guiyuan.wang-N
 *
 *         createTime 2016年12月29日下午5:10:07
 *
 */
@Configuration
public class WebMvcConfig extends WebMvcConfigurerAdapter {

	@Override
	public void addResourceHandlers(ResourceHandlerRegistry registry) {
		registry.addResourceHandler("/static/**").addResourceLocations("classpath:/static/");
	}

	// @Override
	// public void configureViewResolvers(ViewResolverRegistry registry) {
	// registry.enableContentNegotiation(new MappingJackson2JsonView());
	// registry.freeMarker().cache(false);
	// }
	//
	// @Bean
	// public FreeMarkerConfigurer freeMarkerConfigurer() {
	// FreeMarkerConfigurer configurer = new FreeMarkerConfigurer();
	// configurer.setTemplateLoaderPath("/WEB-INF/");
	// return configurer;
	// }
}
